<style type="text/css">
.group_open_categories_nav ul
{
	display:inline;
	margin:0 0 0 1em;
}
.group_open_categories_nav ul li
{
	display:inline;
	margin:0 1em 0 0;
}
.group_open_categories_nav ul li a.visiting
{
	background:#ccc;
}
</style>
<div class="group_open_categories_nav">
<?php
foreach($v['group'] as $group_name => $tmp)
{
	echo '<p class="group">' . $group_name . '</p>';
	foreach($tmp as $title => $categories)
	{
		echo '<p class="sub_group">' . $title . '</p>';
		echo '<ul>';
		foreach($categories as $category_name=>$display)
		{
	
			$tmp = $v['uri_data'];
			$tmp['category_name'] = $category_name;
			echo '<li><a href="'.encodeFilterUri($tmp).'"';
			if($v['uri_data']['category_name']==$category_name)
			{
				echo 'class="visiting"';
			}
			echo '>'.$display.'</a></li>';
		}
		echo '</ul>';
	}
}
?>
</div>
